﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
	CodeBehind="MonthlyEvent.aspx.cs" Inherits="SBACN.WebSite.MonthlyEvent.MonthlyEvent" %>

<%@ Register Src="../UC/Navigator.ascx" TagName="Navigator" TagPrefix="uc1" %>
<%@ Register Src="../UC/Menu.ascx" TagName="Menu" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script src="../js/plugin/jquery.cluetip.js" type="text/javascript"></script>
	<link href="/js/plugin/css/clueTip.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
		$jqy(function () {
			$jqy("a.cluetip").cluetip({ width: '342px', cursor: 'auto' });
		})
		function Event_Sel() {
			var year_sel = $jqy("#Year_Sel option:selected").val();
			var month_sel = $jqy("#<%= Month_Sel.ClientID %> option:selected").val();

			window.location = "MonthlyEvent.aspx?st=<%= this.SystemCode %>&d=" + year_sel + "/" + month_sel;
		}
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<!--主内容区-->
	<div id="wrapper">
		<uc1:Navigator ID="Navigator1" runat="server" />
		<!--左边栏-->
		<uc2:Menu ID="Menu1" runat="server" />
		<!--左边栏-->
		<!--右边栏-->
		<div id="container_r">
			<div id="pic_box">
				<img src="../images/event_img.jpg" width="756" height="126" />
			</div>
			<div id="main_rbox">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border_collapse">
					<tr>
						<td colspan="7" class="datebarbg">
							<img src="../images/cal_icon.png" width="31" height="31" />
							<a href="MonthlyEvent.aspx?st=<%= this.SystemCode %>&d=<%= Dl %>">
								<img src="../images/arrow_l.png" width="8" height="13" /></a>
								<%= YearSelectDisplay %>
							年&nbsp;
							<select id="Month_Sel" onchange="Event_Sel();" runat="server">
								<option value="01">01</option>
								<option value="02">02</option>
								<option value="03">03</option>
								<option value="04">04</option>
								<option value="05">05</option>
								<option value="06">06</option>
								<option value="07">07</option>
								<option value="08">08</option>
								<option value="09">09</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
							</select>
							月 <a href="MonthlyEvent.aspx?st=<%= this.SystemCode %>&d=<%= Dr %>">
								<img src="../images/arrow_r.png" width="8" height="13" /></a>
						</td>
					</tr>
					<tr>
						<td class="weekbg">
							星期日
						</td>
						<td class="weekbg">
							星期一
						</td>
						<td class="weekbg">
							星期二
						</td>
						<td class="weekbg">
							星期三
						</td>
						<td class="weekbg">
							星期四
						</td>
						<td class="weekbg">
							星期五
						</td>
						<td class="weekbg">
							星期六
						</td>
					</tr>
					<asp:Repeater runat="server" ID="Rep">
						<ItemTemplate>
							<tr>
								<td class="datebg">
									<%# DateStr( Eval("D0").ToString()) %>
								</td>
								<td class="datebg">
									<%# DateStr( Eval("D1").ToString()) %>
								</td>
								<td class="datebg">
									<%# DateStr( Eval("D2").ToString()) %>
								</td>
								<td class="datebg">
									<%# DateStr( Eval("D3").ToString()) %>
								</td>
								<td class="datebg">
									<%# DateStr( Eval("D4").ToString()) %>
								</td>
								<td class="datebg">
									<%# DateStr( Eval("D5").ToString()) %>
								</td>
								<td class="datebg">
									<%# DateStr(Eval("D6").ToString())%>
								</td>
							</tr>
							<tr>
								<td class="<%# Color( Eval("D0").ToString()) %>">
									<a <%# ClueTip(Eval("D0").ToString()) %>>
										<%# EventS( Eval("D0").ToString()) %>
									</a>
								</td>
								<td class="<%# Color( Eval("D1").ToString()) %>">
									<a <%# ClueTip(Eval("D1").ToString()) %>>
										<%# EventS( Eval("D1").ToString()) %>
									</a>
								</td>
								<td class="<%# Color( Eval("D2").ToString()) %>">
									<a <%# ClueTip(Eval("D2").ToString()) %>>
										<%# EventS( Eval("D2").ToString()) %>
									</a>
								</td>
								<td class="<%# Color( Eval("D3").ToString()) %>">
									<a <%# ClueTip(Eval("D3").ToString()) %>>
										<%# EventS( Eval("D3").ToString()) %>
									</a>
								</td>
								<td class="<%# Color( Eval("D4").ToString()) %>">
									<a <%# ClueTip(Eval("D4").ToString()) %>>
										<%# EventS( Eval("D4").ToString()) %>
								</td>
								<td class="<%# Color( Eval("D5").ToString()) %>">
									<a <%# ClueTip(Eval("D5").ToString()) %>>
										<%# EventS( Eval("D5").ToString()) %>
									</a>
								</td>
								<td class="<%# Color( Eval("D6").ToString()) %>">
									<a <%# ClueTip(Eval("D6").ToString()) %>>
										<%# EventS(Eval("D6").ToString())%>
									</a>
								</td>
							</tr>
						</ItemTemplate>
					</asp:Repeater>
				</table>
			</div>
		</div>
		<!--右边栏-->
	</div>
	<div style="clear: both;">
	</div>
	<!--主内容区-->
</asp:Content>
